package com.sixth.controller;

import com.sixth.bean.MarketFeedback;
import com.sixth.bean.common.BasePageInfo;
import com.sixth.bean.common.BaseRespVo;
import com.sixth.service.AdminFeedbackService;
import org.apache.shiro.authz.annotation.Logical;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName AdminFeedbackController
 * @Description TODO
 * @Author XiaoWJ
 * @Date 2022/9/7 22:03
 **/

@RestController
@RequestMapping("admin/feedback")
public class AdminFeedbackController {

    @Autowired
    AdminFeedbackService adminFeedbackService;

    @RequiresPermissions(value = {"admin:feedback:list"}, logical = Logical.OR)
    @RequestMapping("list")
    public BaseRespVo<Object> list(BasePageInfo basePageInfo, String username, Integer id) {
        Object result = adminFeedbackService.list(basePageInfo, username, id);

        return BaseRespVo.ok(result);
    }


}
